package ClassData;

import ClassData.Visitor.IVisitor;
import ClassData.Visitor.IVisitorElement;

public class ConstantPoolInteger_Info extends ConstantPoolInfo implements IVisitorElement {

	private int Value;
	
	public ConstantPoolInteger_Info(int newValue) {
		Value=newValue;	
	}
	
	public int getValue() {
		return(Value);	
	}

	/**
	 * returns type of this constant pool entry
	 * 
	 */	
	public int getType() {
		return(CONSTANT_Integer);
	}
	
	@Override
	public void receive_Visitor(IVisitor visitor) {
		visitor.visit_ConstantPoolInteger_Info(this);
	}
	
}
